import request from '../utils/request';


export const Login = (data) => request({
    url: `/user/login.do`,
    method: "post",
    params: data
})



export const home = () => request({
    url: `/statistic/base_count.do`,
    method: "get",

})

export const getUserList = (data) => request({
    url: `/user/list.do`,
    method: "post",
    params: data
})


export const getProductList = (data) => request({
    url: `/product/list.do`,
    method: "get",
    params: data
})

export const getSearch = (data) => request({
    url: `/product/search.do`,
    method: "get",
    params: data
})


export const editStatu = (data) => request({
    url: `/product/set_sale_status.do`,
    method: "post",
    params: data
})



export const getcategory = (data) => request({
    url: `/category/get_category.do`,
    method: "get",
    params: data
})

export const SubmitFrom = (data) => request({
    url: `/product/save.do`,
    method: "get",
    params: data
})


export const LookFrom = (data) => request({
    url: `/product/detail.do`,
    method: "get",
    params: data
})
    
export const Editcategory = (data) => request({
    url: `/category/set_category_name.do?`,
    method: "post",
    params: data
})
    
export const addcategory = (data) => request({
    url: `/category/add_category.do?`,
    method: "post",
    params: data
})
    
export const orderList = (data) => request({
    url: `/order/list.do?`,
    method: "post",
    params: data
})
    
export const orderSearch = (data) => request({
    url: `/order/search.do?`,
    method: "post",
    params: data
})
export const orderLook = (data) => request({
    url: `/order/detail.do?`,
    method: "post",
    params: data
})